#include <cv.h>
#include <highgui.h>

int main()
{
	 float A[]={  1,0,0,0,0,
				  0,1,0,0,0,
				  0,0,1,0,0,
	              0,0,0,1,0,
	              0,0,0,0,1};

	CvMat B = cvMat(5, 5, CV_32F, A);

	cvSave("A.xml", &B );

}
